<template>
	<view>

		<view v-for="(item, index) in hospitalGuideList" :key="item.id" :ref="'item'+index">
			<view style="width: 100%;height: 70px;margin-left: 30px;">
				<view style="font-size: 26px;color: #3478f7;margin-top: 20px;">
					<text>{{item.floor}}</text>
				</view>

				<view style="font-size: 18px;margin-top: 20px;">
					<text>{{item.floorDirectory}}</text>
				</view>
				<view style="border:2px solid #f4f4f4;margin-top: 10px;"></view>
			</view>
		</view>
		

	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:0,
				hospitalGuideList:[],
			}
		},
		onLoad(res) {
			console.log(res)
			this.id = res.id
			console.log("id:::"+this.id)
			this.findxwID();
		},
		methods: {

			findxwID() {
				uni.request({
					url: "http://localhost:9000/other/other/hospital-guide/findAllBYCampusId/" + this.id,
					method: 'post',
					success: (res) => {
						console.log(res)
						this.hospitalGuideList = res.data.data.list
					}
				})
			},
		}
	}
</script>

<style>
	page {
		background-color: #fff;
	}
</style>
